package cn.ray_land.dlprint.print;

import android.app.Presentation;
import android.content.Context;
import android.graphics.Color;
import android.net.Uri;
import android.os.Bundle;
import android.view.Display;
import android.widget.ImageView;

/**
 * Created by gw on 2016/8/2.
 */

public class OverShadowPresentation extends Presentation {

    private ImageView imageView;

    public OverShadowPresentation(Context outerContext, Display display) {
        super(outerContext, display);
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        getWindow().getDecorView().setBackgroundColor(Color.BLACK);
        imageView = new ImageView(getContext());
        setContentView(imageView);
    }

    public void setPresentationImage(Uri uri){
        imageView.setImageURI(uri);
    }


}
